package game.starts;

public class Backpack {
    private String name;
    private String type;
    private int num;
    private String desc;
    private int size = 30;
    private int useSize = 0;
    private Backpack[] backpack = new Backpack[size];
    public void addGoods(String name,String type,int num,String desc){
        for (int i = 0; i <= useSize; i++) {
            if(name.equals(backpack[i].name)){
                this.num+=num;
            }
        }

    }

}
